//
//  TBWithdrawTableViewCell.swift
//  TianTianBiTing
//
//  Created by Gox mac 2 on 2019/2/27.
//  Copyright © 2019 Gox_WallyDiao. All rights reserved.
//

import UIKit

class TBWithdrawTableViewCell: UITableViewCell {
    var nameLabel:UILabel = UILabel()
    var numberLabel:UILabel = UILabel()
    var timeLable:UILabel = UILabel()
    var lineView:UIView = UIView()
    
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        setUI()
    }
    
    
    func setUI() {
        
        nameLabel.font = Font_Medium(14)
        nameLabel.textColor = RGB_Same(53)
        contentView.addSubview(nameLabel)
        
        timeLable.font = Font_Regular(11)
        timeLable.textColor = RGB_Same(53)
        contentView.addSubview(timeLable)
        
        numberLabel.font = Font_Medium(17)
        numberLabel.textColor = RGB_Same(0)
        numberLabel.textAlignment = .right
        contentView.addSubview(numberLabel)
        
        lineView.backgroundColor = RGB_Same(240, 1)
        contentView.addSubview(lineView)
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        
        // Configure the view for the selected state
    }
    
    override func layoutSubviews() {
        nameLabel.frame = FRAME_CGFloat(17.5, 15, SCREEN_WIDTH / 2, 20)
        timeLable.frame = FRAME_CGFloat(17.5, 39, SCREEN_WIDTH / 2, 15)
        numberLabel.frame = FRAME_CGFloat(SCREEN_WIDTH / 2, 22.5, SCREEN_WIDTH / 2 - 10, 24)
        lineView.frame = FRAME_CGFloat(0, 63, SCREEN_WIDTH, 1)
        
    }

}
